package cn.szzsi.common.model;

import cn.szzsi.common.model.base.BaseIntegralProduct;

import java.util.Date;

/**
 * 积分商品
 * Created by zhengy on 2017/2/6.
 */

public class IntegralProduct extends BaseIntegralProduct<IntegralProduct> {
    public static final IntegralProduct dao=new IntegralProduct().dao();

    public void init(){
        Date shelfTime=this.getDate("shelfTime");
        if(shelfTime.before(new Date())){
            this.put("productStatus","已下架");
        }else{
            this.put("productStatus","上架中");
        }
    }
}
